#import "InsectInvincibleView.h"


@implementation InsectInvincibleView



- (void)setButterflyYonderZipper:(InsectInvincibleModel *)butterflyYonderZipper {
	_butterflyYonderZipper = butterflyYonderZipper;

	//: 配置cell的UI

	[self.rebirthInspireImageView sd_setImageWithURL:[NSURL URLWithString:butterflyYonderZipper.curious] placeholderImage:nil];

}
- (UITextView *)artistryDreamerKingdomTextView {
	if (!_artistryDreamerKingdomTextView) {
	
        _artistryDreamerKingdomTextView = [[UITextView alloc] init];
        _artistryDreamerKingdomTextView.size = CGSizeMake(99, 79);
        _artistryDreamerKingdomTextView.left = 22;
        _artistryDreamerKingdomTextView.top = 16;
	}
	return _artistryDreamerKingdomTextView;
}

- (UITextField *)luminousTextField {
	if (!_luminousTextField) {
	
        _luminousTextField = [[UITextField alloc] init];
	}
	return _luminousTextField;
}

//: 设置xenophobe的圆角
+ (void)pioneer:(UIImageView *)apprehension quench:(CGFloat)noodle {
	apprehension.layer.cornerRadius = noodle;
	apprehension.layer.masksToBounds = YES;
}

//: yonder 的点击事件
- (void)action_5 {}

//: 设置self.rebirthInspireImageView的圆角
+ (void)dazzleEnchanting:(UIImageView *)journey thriveWhisperApple:(CGFloat)radiate {
	journey.layer.cornerRadius = radiate;
	journey.layer.masksToBounds = YES;
}

- (void)clarityInitUIKitView {

    //: 描述_0
    UITextView *unveilKnotRebirth = [UITextView new];
    unveilKnotRebirth.frame = CGRectMake(32, 24, 58, 197);
    self.hologramTextView = unveilKnotRebirth;
    [self addSubview:unveilKnotRebirth];

	//: 描述_1
	[self addSubview:self.artistryDreamerKingdomTextView];

	//: 描述_2
	[self addSubview:self.luminousTextField];
	[self.luminousTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(119);
		make.height.mas_equalTo(152);
		make.top.equalTo(@(16));
		make.bottom.equalTo(@(12));
	}];


    //: 描述_3
    self.voyageTextView = [[UITextView alloc] initWithFrame:CGRectZero];
    [self addSubview:self.voyageTextView];
	[self.voyageTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(170);
		make.height.mas_equalTo(193);
	}];


    //: 描述_4
    UIImageView *xenophobe = [UIImageView new];
    xenophobe.contentMode = UIViewContentModeScaleAspectFill;
    xenophobe.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [InsectInvincibleView pioneer:xenophobe quench:1];
    UIImage *leapfrogKeenOracle = [UIImage imageNamed:@"images/image_4.png"];
    if (leapfrogKeenOracle) {
	    xenophobe.image = leapfrogKeenOracle;
    }
    self.joyousGritNostalgicImageView = xenophobe;
    [self addSubview:xenophobe];
	[self.joyousGritNostalgicImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(93);
		make.height.mas_equalTo(80);
		make.bottom.equalTo(@(13));
	}];


    //: 描述_5
    UIButton *yonder = [[UIButton alloc] initWithFrame:CGRectZero];
    UIImage *flow = [UIImage imageNamed:@"images/icon_5.png"];
    if (flow) {
	    [yonder setImage:flow forState:UIControlStateNormal];
    }
    [yonder setTitle:@"button_5" forState:UIControlStateNormal];
    [yonder setTitle:@"button_selected_5" forState:UIControlStateSelected];
    [yonder setTitleColor:[UIColor colorWithRed:148/255.0 green:160/255.0 blue:76/255.0 alpha:0.8] forState:UIControlStateNormal];
    [yonder setTitleColor:[UIColor colorWithRed:97/255.0 green:244/255.0 blue:63/255.0 alpha:1.0] forState:UIControlStateSelected];
    [yonder addTarget:self action:@selector(action_5) forControlEvents:UIControlEventTouchUpInside];
    self.journeyBtn = yonder;
    [self addSubview:yonder];
	[self.journeyBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(193);
		make.height.mas_equalTo(182);
	}];


    //: 描述_6
    self.rebirthInspireImageView = [[UIImageView alloc] init];
    self.rebirthInspireImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.rebirthInspireImageView.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [InsectInvincibleView dazzleEnchanting:self.rebirthInspireImageView thriveWhisperApple:0];
    UIImage *radianceArchiveTranquil = [UIImage imageNamed:@"images/image_6.png"];
    if (radianceArchiveTranquil) {
	    self.rebirthInspireImageView.image = radianceArchiveTranquil;
    }
    [self addSubview:self.rebirthInspireImageView];
	[self.rebirthInspireImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(172);
		make.height.mas_equalTo(187);
		make.top.equalTo(@(13));
	}];


    //: 描述_7
    UIView *tranquilGraspNavigate = [[UIView alloc] init];
    tranquilGraspNavigate.size = CGSizeMake(105, 181);
    tranquilGraspNavigate.left = 0;
    tranquilGraspNavigate.top = 38;
    self.wonderRebirthView = tranquilGraspNavigate;
    [self addSubview:tranquilGraspNavigate];
}


@end